package com.es.core.controller;

import com.es.core.service.RabbitMQService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 描述:
 * Old-AgeCareSystem-
 *
 * @author Derek
 * @create 2021-12-09 10:48
 */
@RestController
@RequestMapping("/rabbit/order")
public class RabbitOrderController {
    @Autowired
    private RabbitMQService service;
    @RequestMapping("/submit")
    public String submitOrder(){
        //发送短信
        //处理订单....
        service.sendSMS("你的订单已确定，请尽快支付....");
        return "下单成功";

    }
}
